<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery-3.3.1.min.js"></script>
</head>
<body>
    
</body>
<script>
    let array=["严","孙","李","卫"];
    for (let i = 0; i<array.length;i++) {
        console.log(array[i]);
    }
    console.log("-----------------------")
    for(let le of array){
        console.log(le);
    }
    console.log("-----------------------")
    $(array).each(function(index,element){
        console.log(index+","+element);
    })
    console.log("-----------------------")
    $.each(array,function(index,element){
        console.log(index+","+element);
    })
</script>
</html>